package com.changyue.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.changyue.greendao.gen.DaoMaster;
import com.changyue.greendao.gen.HistoryDataEntityDao;

public class TrainOpenHelper extends DaoMaster.OpenHelper {

    public TrainOpenHelper(Context context, String name) {
        super(context, name);
    }

    public TrainOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        super.onUpgrade(db, oldVersion, newVersion);
        MigrationHelper.migrate(db, HistoryDataEntityDao.class);
    }
}